package com.aqumon.www.entity.persistent;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * job 部分构建表
 * </p>
 *
 * @author aqumon
 * @since 2022-05-19
 */
@Getter
@Setter
@TableName("jenkins_build")
@ApiModel(value = "JenkinsBuild对象", description = "job 部分构建表")
public class JenkinsBuild implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("脚本id")
    @TableField("script_id")
    private Long scriptId;

    @ApiModelProperty("最近一次构建")
    @TableField("last_build")
    private String lastBuild;

    @ApiModelProperty("最近一次成功构建")
    @TableField("last_successful_build")
    private String lastSuccessfulBuild;

    @ApiModelProperty("最近一次失败构建")
    @TableField("last_failed_build")
    private String lastFailedBuild;

    @ApiModelProperty("'记录创建时间'")
    @TableField("gmt_created")
    private Date gmtCreated;

    @ApiModelProperty("'记录修改时间")
    @TableField("gmt_modified")
    private Date gmtModified;

}
